<span class="pull-right"><i class="icon-screenshot"></i> <a href="<?= site_url('founder/goals')?>">View all goal</a></span>
<br />

<?= form_open('founder/goals/create_goal');?>
<fieldset>
    <legend>Create a goal</legend>
    <label><strong>For</strong>  
    <select class="chzn-select span12" name="user">
    <option value="">Select a User</option>
     <?php foreach ($users as $user) {?>
      <option value="<?=$user->user_id?>"><?=$user->username?></option>
     <?php }?>
    </select>
    <p class="pull-right"><a class="text-info" href="<?= site_url('founder/user/add_user')?>">Create a User</a></p>
    </label> 
    <small class="text-error"><?= form_error('user'); ?></small> 
    <label><strong>Title</strong> <small class="muted">Heading of the goal. What it should be called ?</small></label>
    <input type="text" class="span12" name="title" />
    <small class="text-error"><?= form_error('title'); ?></small>
       
    <label><strong>Description</strong> <small class="muted">Why is this goal important? What would inspire people to help?</small> </label>
    <textarea class="span12" rows="5" name="desc"></textarea>
 <small class="text-error"><?= form_error('desc'); ?></small>
 
 <label><strong>Company Objective</strong>
 <select class="chzn-select span12" name="objective">
 <option value="">Select an objective</option>
 <?php foreach($objectives as $objective) {?>
 <option value="<?= $objective->id?>"><?= $objective->title?></option>
 <?php }?>
 </select>
 <p class="pull-right"><a class="text-info" href="<?= site_url('founder/goals/create_objective')?>">Create a objective</a></p>
 </label>
  <small class="text-error"><?= form_error('objective'); ?></small>
 

 <label><strong>Start Date</strong><small class="muted">  Starting date </small>
  <input type="text" class="span12" id="dpd1" name="start_date" />
  
   <small class="text-error"><?= form_error('start_date'); ?></small>
 </label>
 
  <label><strong>Due Date</strong><small class="muted">  Last date </small>
  <input type="text" class="span12" id="dpd2" name="due_date" />
   <small class="text-error"><?= form_error('due_date'); ?></small>
 </label>



<button type="submit" class="btn btn-success">Create Goal</button>
</fieldset>
</form>
